/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/ban-types */

import { UploadProps } from "antd/es/upload";

// 内容
export interface DataType {
  veid: any;
  // 车型图片
  image: string;
  // 车型名称
  vname: string;
  // 车牌
  platenumber: string;
  // 门店
  shop: string;
  // 当前里程数
  mileage: string;
  // 油箱容量
  capacity: string;
  // 车辆颜色
  colour: string;
  // 运营状态
  vstatus: Number;
  // 车架号
  frame: string;
  // 发动机编号
  engineNo: string;
  // 建造时间
  constructiontime: Date;
  // 年检证明
  inspectannuallyProve: string;
  // 年检到期时间
  inspectannuallyDate: Date;
  //车保到期时间
  annualInsuranceDate: Date;
  // 上传保单
  annualInsuranceImg: string;
}

export interface VehicleFormProps {
  previewOpen: boolean;
  previewOpen1: boolean;
  previewOpen2: boolean;
  handleCancel: () => void;
  handleCancel1: () => void;
  handleCancel2: () => void;
  previewImage: string;
  fileList: UploadProps["fileList"] | undefined;
  handleChange: UploadProps["onChange"];
  onFinish: (values: any) => void;
  setFileList: (fileList: any) => void;

  previewImage1: string;
  fileList1: UploadProps["fileList"] | undefined;
  handleChange1: UploadProps["onChange"];
  setFileList1: (fileList: any) => void;

  previewImage2: string;
  fileList2: UploadProps["fileList"] | undefined;
  handleChange2: UploadProps["onChange"];
  setFileList2: (fileList: any) => void;
  editMode: boolean;
  selectedRecord: DataType | null;
  Store: [];
  setPreviewOpen: (previewOpen: boolean) => void;
  setPreviewOpen1: (previewOpen: boolean) => void;
  setPreviewOpen2: (previewOpen: boolean) => void;
}
